package com.joshua.spring.integration.exception;

import com.joshua.spring.entity.em.ResponseEnum;
import com.joshua.spring.exception.ExceptionEnumInter;
import lombok.Data;
import org.springframework.security.authentication.InternalAuthenticationServiceException;

/**
 * com.joshua.spring.business.integration.exception -- IntegrationAuthenticationServiceException
 * description:
 *
 * @author <a href="mailto:joshualwork@163.com">joshua_liu</a>
 * @date 2020/1/13 19:57
 */
@Data
public class IntegrationAuthenticationServiceException extends InternalAuthenticationServiceException {
    private ExceptionEnumInter exceptionEnum;

    public IntegrationAuthenticationServiceException(ResponseEnum exceptionEnum) {
        super(exceptionEnum.getMsgFormatter(), new Throwable());
        this.exceptionEnum = exceptionEnum;
    }

}
